﻿
function Cancelation() {
    window.location = "../Employeer/EmployeerEntry.aspx";
}

$(document).ready(function () {
    var height = $(document).height(); // returns height of HTML document
    var scroll = (height / 100) * 10;
    // hide #back-top first
    $("#back-top").hide();

    // fade in #back-top
    $(function () {
        $(window).scroll(function () {
            if ($(this).scrollTop() > scroll) {
                $('#back-top').fadeIn();
                $('#back-top').css("right", "100px");
            } else {
                $('#back-top').fadeOut();
            }
        });

        // scroll body to 0px on click
        $('#back-top a').click(function () {
            $('body,html').animate({
                scrollTop: 0
            }, 800);
            return false;
        });
    });
});
